/**
 * @File name : UserService.java
 * @Description : 
 * @Creator : haifeng17
 * @CreateTime : Mar 7, 2017 7:42:41 PM
 * @Version : 1.0
 * @Update records:
 *      1.1 Mar 7, 2017 by haifeng17: 
 *      1.0 Mar 7, 2017 by haifeng17: Created 
 * All rights served : XXX CORP.
 */
package com.ent.app.bms.service.system;

import java.util.Set;

import com.ent.app.bms.bean.SysUser;
import com.ent.app.bms.util.PageData;



public interface UserService {
    public SysUser findUserByNameAndPwd(String username, String password) throws Exception;
    public PageData getUserByNameAndPwd(PageData pd)throws Exception;
    public SysUser findByUsername(String username);
    public Set<String> findRoles(String username);
    public Set<String> findPermissions(String username);
    
    public int saveUser(SysUser user) throws Exception;
}
